#ifndef MENUSCREEN_H_
#define MENUSCREEN_H_

#include <MAUI/Screen.h>
#include <MAUI/Layout.h>
#include <MAUI/Label.h>
#include <MAUI/ListBox.h>

using namespace MAUI;

class MenuListener{
public:
	virtual void menuIndex(int index) = 0;
};

class MenuScreen : public Screen
{
	public:
		MenuScreen();
		~MenuScreen();

		void keyPressEvent(int keyCode, int nativeCode);
		void pointerPressEvent(MAPoint2d point);
		void pointerReleaseEvent(MAPoint2d point);

		void setListener(MenuListener* input);
		void addMenuItem(String& input);
		void clearMenuItem();

		//void hide();
	private:
		Layout* mLayout;
		ListBox* mMenu;
		Widget *softKeys;
		MenuListener *listener;
};

#endif /* MENUSCREEN_H_ */
